<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			//var a="jjjjdsds  	sassssfdfk;a ";
			
			var testStr="sssss  vvv vv";
var resultStr=testStr.replace(/\ +/g,"");//去掉空格
//resultStr=testStr.replace(/[\r\n]/g,"");//去掉回车换行
console.log(resultStr);
document.onkeydown=function(){
	if (window.event&&window.event.keyCode==13) {
		window.even.returnValue=false;
	}
	
}
window.onload=function(){
	var fu=document.getElementById("qq");
	console.log(fu.childNodes.length);
	console.log(fu.children.length)

}
		</script>
	</head>
	<body>
		<ul id="qq">
		    <li>福建</li>
			<li>浙江</li>
			<li>北京</li>
		</ul>
	</body>
</html>
